<template>
  <div class="cont">
    <!-- <div class="un">
            <img src="@/assets/no-add.png" alt="" class="un-add">
    </div>-->
    <div class="list-address">
      <div class="add-list">
        <div class="listInfo">
          <div class="name">付多哈哈</div>
          <div class="tel">18712362003</div>
        </div>
        <div class="address">陕西省西安市碑林区南二环69号创新设计中心11F1116室</div>
        <duv class="editGroup">
          <div class="edit">
            <van-radio-group v-model="radio">
              <van-radio name="1" checked-color="#D63A54">设为默认</van-radio>
              <!-- <van-radio name="2">单选框 2</van-radio> -->
            </van-radio-group>
          </div>
          <div class="changeGroup">
            <div class="change">
              <div><img src="@/assets/change.png" alt="" class="changeIcon"></div>
              <div>编辑</div>
            </div>
            <div class="delete">
              <div><img src="@/assets/delete.png" alt="" class="deleteIcon"></div>
              <div class="delete-wz">删除</div>
            </div>
          </div>

        </duv>
      </div>
    </div>

    <div class="list-address">
      <div class="add-list">
        <div class="listInfo">
          <div class="name">付多哈哈</div>
          <div class="tel">18712362003</div>
        </div>
        <div class="address">陕西省西安市碑林区南二环69号创新设计中心11F1116室</div>
        <duv class="editGroup">
          <div class="edit">
            <van-radio-group v-model="radio">
              <van-radio name="2" checked-color="#D63A54">设为默认</van-radio>
              <!-- <van-radio name="2">单选框 2</van-radio> -->
            </van-radio-group>
          </div>
          <div class="changeGroup">
            <div class="change">
              <div><img src="@/assets/change.png" alt="" class="changeIcon"></div>
              <div @click="routerLink(`addAddress`)">编辑</div>
            </div>
            <div class="delete">
              <div><img src="@/assets/delete.png" alt="" class="deleteIcon"></div>
              <div class="delete-wz">删除</div>
            </div>
          </div>

        </duv>
      </div>
    </div>
    <div class="add-address" @click="routerLink(`addAddress`)">＋新增收货地址</div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      radio: '1'
    }
  },
  methods: {
    routerLink(href) {
      this.$router.push({
        name: href
      })
    }
  }
}
</script>
<style lang="less">
.cont {
  width: 100%;
  min-height: 90vh;
  overflow: hidden;
  .list-address {
    width: 100%;
    // min-height: 76vh;
    padding: 3vw 4vw 1vw;
    background: #f5f6f8;
    box-sizing: border-box;
    .add-address:active{
      border: 1px solid #d63a54
    }
    .add-list {
      width: 100%;
      background: #fff;
      padding: 10px;
      box-sizing: border-box;
      border-radius: 6px;
      .address{
          font-size: 14px;
          padding: 5px 0;
          border-bottom: 1px solid #ccc;
      }
      .listInfo{
          display: flex;
          padding: 3px 0;
          .name{
              font-size: 14px;
              font-weight: bold;
          }
          .tel{
              font-size: 14px;
              padding-left: 10px;
          }
      }
      .editGroup{
           display: flex;
           font-size: 14px;
           justify-content: space-between;
           padding: 3px 0;
           .edit{
               padding: 5px 0;
           }
           .changeGroup{
               display: flex;
               justify-content: space-between;
               align-items: center;
               padding: 0 5px;
           }
            .change{
              display:inline-flex;
              align-items: center;
               img{
                   width: 16px;
               }
            }
            .delete{
                display:inline-flex;
                align-items: center;
                padding-left: 15px;
               }
               .deleteIcon{
                      width: 15px;
                }
      }
    }
  }
  .un {
    width: 100%;
    position: absolute;
    text-align: center;
    padding-top: 30vh;
    .un-add {
      width: 35%;
    }
  }
  .add-address {
    width: 90%;
    border: 1px solid;
    height: 40px;
    line-height: 40px;
    color: #fff;
    text-align: center;
    background: #d63a54;
    position: fixed;
    bottom: 2%;
    left: 5%;
    border-radius: 10px;
    font-size: 14px;
  }
}
</style>
